package exception.util;

public class Util {


	public static boolean isInteiro(String numero){		
		boolean isInteger = true;		
		try {			
			Integer.parseInt(numero); 
		} catch (NumberFormatException e) {
			return !isInteger;
		}		
		return isInteger;		
	}
	
	
    public static boolean isInteiro2(String str) {
        boolean isInteger = true;
        int size = str.length();
        for (int i = 0; (i < size) && isInteger; i++) {
            isInteger = Character.isDigit(str.charAt(i));
        }
        return isInteger;
    }
	
	
}
